package com.example.zhyq.fg

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.alibaba.android.arouter.launcher.ARouter
import com.blankj.utilcode.util.SPUtils
import com.example.base.mvvm.BaseViewFragment
import com.example.zhyq.R
import com.example.zhyq.databinding.FragmentMineBinding


class MineFragment : BaseViewFragment<FragmentMineBinding>() {
    override fun initView() {
        binding.mychange.setOnClickListener {
            SPUtils.getInstance().apply {
                remove("uid")
                remove("username")
                remove("token")
                remove("role")
            }
            ARouter.getInstance().build("/app/LoginActivity").navigation()
        }

        binding.myUname.setText(SPUtils.getInstance().getString("username"))

        binding.mychargeIv.setOnClickListener {
            ARouter.getInstance().build("/app/PayListActivity").navigation()
        }
        binding.mycharge.setOnClickListener {
            ARouter.getInstance().build("/app/PayListActivity").navigation()
        }
    }

    override fun initData() {

    }

}